package cn.wolfcode.edu.query;

import cn.wolfcode.edu.util.StringUtil;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Getter@Setter
public class AttendanceQueryObject extends QueryObject{
    private String keyword;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    public String getKeyword() {
        return StringUtil.emptyStringTONull(keyword);
    }
}
